<?php
$name_data = array(
			'name'        => 'name',
			'id'          => 'name',
			'value'       => '',
			'maxlength'   => '100',
			'size'        => '40'
            );

$address_street_data = array(
			'name'        => 'address_street',
			'id'          => 'address_street',
			'value'       => '',
			'maxlength'   => '100',
			'size'        => '40'
            );

$address_zipcode_data = array(
			'name'        => 'address_zipcode',
			'id'          => 'address_zipcode',
			'value'       => '',
			'maxlength'   => '100',
			'size'        => '40'
);

$address_city_data = array(
			'name'        => 'address_city',
			'id'          => 'address_city',
			'value'       => '',
			'maxlength'   => '100',
			'size'        => '40'
);

$opening_hours_data = array(
			'name'        => 'opening_hours',
			'id'          => 'opening_hours',
			'value'		  => 'Mon-Thursday: 09.00-22.30
Fri-Sun: 10.00-21.00',
			'rows'   	  => '4',
			'cols'        => '32'
            );
/*$opening_hours_data = array(
			'name'        => 'opening_hours',
			'id'          => 'opening_hours',
			'value'   	  => '',
			'maxlength'   => '100',
			'size'        => '40'
);*/

$fastfood_data = array(
			'name'        => 'fastfood',
			'id'          => 'fastfood',
			'value'       => '0',
			'checked'	  => false
);

$vegetarian_data = array(
			'name'        => 'vegetarian',
			'id'          => 'vegetarian',
			'value'       => '0',
			'checked'	  => false
);

$takeaway_data = array(
			'name'        => 'takeaway',
			'id'          => 'takeaway',
			'value'       => '0',
			'checked'	  => false
);

$alcohol_data = array(
			'name'        => 'alcohol',
			'id'          => 'alcohol',
			'value'       => '0',
			'checked'	  => false
);

$kitchen_data = array(
			'name'        => 'kitchen',
			'id'          => 'kitchen',
			'value'       => '',
			'maxlength'   => '100',
			'size'        => '40'
);

$add_to_favorite_data = array(
			'name'        => 'add_to_favorite',
			'id'          => 'add_to_favorite',
			'value'       => '1',
			'checked'	  => true
);
/*
$submit_data = array(
			'name'        => 'add_restaurant_submit',
			'id'          => 'add_restaurant_submit',
			'value'       => 'Submit Restaurant'
);*/

$attributes = array('class' => 'asdf', 'id' => 'add_restaurant');
echo form_open('', $attributes);

echo "<table border='0' align='center'>";
echo "<tr><td width = '150'>";
echo "Name</td><td width = '50'>";
echo form_input($name_data);
echo "</td><td id='name_display' width = '150'></td></tr>";

echo "<tr><td>";
echo "Address - Street</td><td>";
echo form_input($address_street_data);
echo "</td><td id='address_street_display' width = '150'></td></tr>";

echo "<tr><td>";
echo "Address - Zipcode</td><td>";
echo form_input($address_zipcode_data);
echo "</td><td id='address_zipcode_display' width = '150'></td></tr>";

echo "<tr><td>";
echo "Address - City</td><td>";
echo form_input($address_city_data);
echo "</td><td id='address_city_display' width = '150'></td></tr>";

echo "<tr><td>";
echo "Opening Hours</td><td>";
echo form_textarea($opening_hours_data);
echo "</td><td id='opening_hours_display' width = '150'></td></tr>";

echo "<tr><td>";
echo "Kitchen</td><td>";
echo form_input($kitchen_data);
echo "</td><td id='kitchen_display' width = '150'></td></tr>";

echo "<tr><td>";
echo "Fastfood</td><td>";
echo form_checkbox($fastfood_data);
echo "</td><td id='fastfood_display' width = '150'></td></tr>";

echo "<tr><td>";
echo "Vegetarian</td><td>";
echo form_checkbox($vegetarian_data);
echo "</td><td id='vegetarian_display' width = '150'></td></tr>";

echo "<tr><td>";
echo "Take-Away</td><td>";
echo form_checkbox($takeaway_data);
echo "</td><td id='takeaway_display' width = '150'></td></tr>";

echo "<tr><td>";
echo "Alcohol</td><td>";
echo form_checkbox($alcohol_data);
echo "</td><td id='alcohol_display' width = '150'></td></tr>";

echo "<tr><td>";
echo "Add to Favorites!</td><td>";
echo form_checkbox($add_to_favorite_data);
echo "</td><td id='add_to_favorite_display' width = '150'></td></tr>";

echo "<tr><td></td><td align='right'>";
echo form_submit('submit', 'Add', 'id="submit_restaurant"');
echo form_close();
echo "</td><td id='submit_restaurant_display' width = '150'></td></tr>";
echo "</table>";

?>


